computeScaleFactor

open fun computeScaleFactor(other: Vector2<*>): Double(source)

Calculates the scale factor to project this vector onto another vector.

Return

The scale factor for the projection.

Parameters

other

The vector onto which to project this vector.